<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
</head>
<style type="text/css">
.active {
    background-color: #f4f4f4;
}
</style>
<body>
    <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
        <a class="aui-btn aui-btn-info aui-pull-left" id="back" tapmode onclick="closeWin()">
            <span class="aui-iconfont aui-icon-close"></span>
        </a>
        <div class="aui-title">位置</div>
        <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="confirm();">
            发送
        </a>
    </header>
</body>
<script type="text/javascript" src="../../script/api.js" ></script>
<script type="text/javascript">
    function confirm(){
        api.execScript({
            frameName:'bmap_add_map_frm',
            script:'sendMessage()'
        })
    }
    apiready = function(){
        api.parseTapmode();
        var header = $api.byId('aui-header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        api.openFrame({
            name: 'bmap_add_map_frm',
            url: 'bmap_add_map_frm.html',
            bounces: false,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: 'auto'
            },
            pageParam:{
                targetId:api.pageParam.targetId
            }
        });
    };
    function closeWin(){
        api.closeWin();
    }
</script>
</html>